package com.platform.common.util.query.vo;

/**
 * 一键搜，历史记录查询
 * 
 * @date Sep 19, 2017:5:30:15 PM
 * @desc com.netbox.service.datamanager.entity.vo
 * @param <T>
 */
public class QueryDataVo<T> {

	// 查询状态:0表示成功，非0表示失败
	private Integer status = 0;

	// 查询返回状态消息
	private String msg = "ok";

	// 查询耗时,单位为毫秒
	private Long time=0L;

	// 符合查询条件的总记录数
	private Long numFound=0L;

	// 数据对象
	private T docs;

	public QueryDataVo(T docs, Integer status, String msg, Long time, Long numFound) {
		this.docs = docs;
		this.status = status;
		this.msg = msg;
		this.time = time;
		this.numFound = numFound;
	}

	public QueryDataVo() {
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public String getMsg() {
		return msg;
	}

	public void setMsg(String msg) {
		this.msg = msg;
	}

	public Long getTime() {
		return time;
	}

	public void setTime(Long time) {
		this.time = time;
	}

	public Long getNumFound() {
		return numFound;
	}

	public void setNumFound(Long numFound) {
		this.numFound = numFound;
	}

	public T getDocs() {
		return docs;
	}

	public void setDocs(T docs) {
		this.docs = docs;
	}

}
